﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListEdit.ascx.cs" Inherits="Webadmin_Modules_Gallery_ListEdit" %>
<%@ Register Assembly="WYSIWYGEditor" Namespace="InnovaStudio" TagPrefix="cc1" %>
<%@ Import Namespace="System.Data" %>
<script language="javascript" type="text/javascript" >
    function checkSubmit() {      
        return true;
    }
    function removePic(val) {
        oID = document.getElementById('<%=this.txtFile.ClientID %>');
        oID.disabled = val;
    }  
function AddNewRelation()
{    
    oNews=document.getElementById('selNews');

}
</script>
<script language="javascript" type="text/javascript" src="../../JS/bzAjax.js"></script>
 <form id="frmMain" runat="server" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit()" >
        <div align="center">
            <table width="90%" border="0" cellpadding="0" cellspacing="0" class="box_main">  
              <tr>
                <td width="100%" height="30" valign="top" class="navigator" align="left">&nbsp;<%=this.Navigator %></td>
              </tr>
              <tr>
                <td valign="top" align="center">
		            <table class="box_into" width="98%" border="0" cellpadding="5" cellspacing="0">		            
		            <tr>
		  	            <td colspan="2" class="input_label" align="right" style="width: 34%">&nbsp;</td>
		  	            
		            </tr>		            
		             <tr>
		  	            <td  class="input_label" align="right" style="width: 27%">&nbsp;<%=this.AdminLang["TitleVN"]%></td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	                &nbsp;<asp:TextBox ID="txtTitleVN" runat="server" Width="213px"></asp:TextBox>
		  	                &nbsp;<asp:RequiredFieldValidator ID="reqTitleVN" runat="server" ControlToValidate="txtTitleVN" Display="Dynamic" Text="*" SetFocusOnError="true" ErrorMessage="*" ></asp:RequiredFieldValidator>
		  	                </td>
		            </tr>	
		             <tr>
		  	            <td  class="input_label" align="right" style="width: 27%">&nbsp;Title</td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	                &nbsp;<asp:TextBox ID="txtTitleEN" runat="server" Width="213px"></asp:TextBox>
		  	                &nbsp;<asp:RequiredFieldValidator ID="reqTitleEN" runat="server" ControlToValidate="txtTitleEN" Display="Dynamic" Text="*" SetFocusOnError="true" ErrorMessage="*" ></asp:RequiredFieldValidator>
		  	                </td>
		            </tr>		            
		             <tr>
		  	            <td  class="input_label" align="right" style="width: 25%">&nbsp;<%=this.AdminLang["DescriptionVN"] %></td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	                &nbsp;<asp:TextBox ID="txtDesVN" runat="server" Width="281px" TextMode="MultiLine" Height="100px"></asp:TextBox>
		  	            </td>
		            </tr>     
		              <tr>
		  	            <td  class="input_label" align="right" style="width: 25%">&nbsp;Description</td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	                &nbsp;<asp:TextBox ID="txtDesEN" runat="server" Width="281px" TextMode="MultiLine" Height="100px"></asp:TextBox>
		  	            </td>
		            </tr>       
		             <tr>
		  	            <td  class="input_label" align="right" style="width: 27%">&nbsp;<%=this.AdminLang["Picture"]%></td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	                <%if (_Act == "Edit" && _dt.Rows.Count > 0) if (_dt.Rows[0]["PicThumb"].ToString() != "")
                           {%>&nbsp;
		  	                <img src="../../../Images/Gallery/<%=_dt.Rows[0]["PicThumb"].ToString() %>" width="120" /><br />       
		  	                <%} %>
		  	                &nbsp;<asp:FileUpload ID="txtFile" runat="server" />	
		  	                &nbsp;<asp:CheckBox ID="chkRemovePic" runat="server" onclick="removePic(this.checked)" Text="Xóa"/> <br />	
		  	                &nbsp;<asp:TextBox ID="txtNoteVN" runat="server"></asp:TextBox>&nbsp;<%=this.AdminLang["NoteVN"]%><br />
		  	                &nbsp;<asp:TextBox ID="txtNoteEN" runat="server"></asp:TextBox>&nbsp;Note<br />

		  	           </td>
		            </tr>  	 	
		             <tr >     
                      <td width="100%" align="left" valign="middle" colspan="2" height="22"><strong><%=this.AdminLang["ContentVN"] %></strong></td>     
                    </tr>		            
		             <tr >     
                      <td colspan="2" width="100%" align="center" valign="top">
                          <cc1:WYSIWYGEditor ID="txtContentVN" runat="server" btnClearAll="true"  scriptPath="http://vesinhnhatdang.vn/Editor/scripts/" Width="98%" AssetManager="http://vesinhnhatdang.vn/Editor/assetmanager/assetmanager.aspx" AssetManagerHeight="510" AssetManagerWidth="570"/>
                      </td>     
                    </tr>   
                    <tr >     
                      <td width="100%" align="left" valign="middle" colspan="2" height="22"><strong>Content</strong></td>     
                    </tr>		            
		             <tr >     
                      <td colspan="2" width="100%" align="center" valign="top">
                          <cc1:WYSIWYGEditor ID="txtContentEN" runat="server" btnClearAll="true"  scriptPath="http://vesinhnhatdang.vn/Editor/scripts/" Width="98%" AssetManager="http://vesinhnhatdang.vn/Editor/assetmanager/assetmanager.aspx" AssetManagerHeight="510" AssetManagerWidth="570"/>
                      </td>     
                    </tr>                                    
		             <tr>
		  	            <td  class="input_label" align="right" style="width: 27%">&nbsp;<%=this.AdminLang["Enabled"] %></td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	            &nbsp;<asp:RadioButton ID="rdEnabled_1" runat="server" GroupName="rdEnabled" Checked="true"/>&nbsp;<%=this.AdminLang["Enabled_1"]%>
		  	            &nbsp;<asp:RadioButton ID="rdEnabled_0" runat="server" GroupName="rdEnabled" />&nbsp;<%=this.AdminLang["Enabled_0"]%>
		  	            </td>
		            </tr>  
		            <tr>
		  	            <td  class="input_label" align="right" style="width: 27%">&nbsp;<%=this.AdminLang["Forward"]%></td>
		  	            <td  class="input_textbox" width="60%" align="left">
		  	            &nbsp;<asp:RadioButton ID="rdForward_1" runat="server" GroupName="rdForward" Checked="true" />&nbsp;<%=this.AdminLang["Forward_1"] %>
		  	            &nbsp;<asp:RadioButton ID="rdForward_0" runat="server" GroupName="rdForward" />&nbsp;<%=this.AdminLang["Forward_0"] %>
		  	            </td>
		            </tr>  
		            <tr>
		  	            <td colspan="2" class="input_label" align="right">&nbsp;<span style="color:#ff0000">*</span>&nbsp;<%=this.AdminLang["RequireField"]%></td>
		  	            
		            </tr>     
		  		        <tr>
		  	                <td colspan="2" style="width: 77px; height: 10px;">&nbsp;</td>
		                </tr>	
		            </table>
                </td>
              </tr>
               <tr>
			            <td  height="22" valign="top" colspan="2" align="center">
			                <asp:Button ID="btnUpdate" Text="" runat="server" CssClass="btn_submit" OnClick="btnUpdate_Click"  />
			                <div class="back" style="float:right;margin-right:10px"><a href="<%=Session["Page"]%>"><%=this.AdminLang["Back"] %></a></div>
			            </td>			
		              </tr>
              <tr>
  	            <td style="height: 19px">&nbsp;</td>
              </tr>
            </table>
          </div>         
       </form>    